
const { Controller } = require('egg');


class invatationController extends Controller {
  // 获取帖子详情
  async getInvatationPage() {
    const { ctx } = this;
    const info = ctx.request.query;
    await ctx.service.invatation.getPage(info,ctx);
  }
  // 添加帖子
  async addInvatation() {
    const { ctx } = this;
    const info = ctx.request.body;
    await ctx.service.invatation.add(info,ctx);
  }
  // 删除帖子
  async delete() {
    const { ctx } = this;
    const info = ctx.request.body;
    await ctx.service.invatation.delete(info,ctx);
  }
}

module.exports = invatationController;